﻿using System;
using System.Collections.Generic;
using System.Text;
using PubSubSubscriber;

namespace TestSubscriber
{
    class Program
    {
        static void Main(string[] args)
        {
            PubSubSubscriber.Subscriber sub = new Subscriber("127.0.0.1", 10009);
            //sub.messageChanged += UpdateMessage;

            //Console.WriteLine("Subscribe to WII|X");
            //sub.Subscribe("WII|X");
            //Console.WriteLine("Subscribe to WII|Y");
            //sub.Subscribe("WII|Y");
            //Console.WriteLine("Subscribe to WII|Z");
            //sub.Subscribe("WII|Z");
            Console.WriteLine("Subscribe to WII|Roll");
            sub.Subscribe("WII|Roll");

            //Console.WriteLine("Subscribe to ARD|LIGHT");
            //sub.Subscribe("ARD|LIGHT");

            //Console.WriteLine("Subscribe to ARD|SOUND");
            //sub.Subscribe("ARD|SOUND");

            Console.Read();
            sub.Shutdown();
        }

        //private static void UpdateMessage(object sender, MessageChangedArgs args)
        //{
        //    Console.WriteLine(args.message);
        //}
    }
}
